package com.qijian.business.domain.query;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 实开发票对象 查询条件类
 *
 * @author qijian
 * @date 2021-09-15
 */

@Data
@ToString
@TableName("finance_invoice")
public class InvoiceQuery {

    @WhereType(filed = "id")
    private Long id;
    @WhereType(filed = "contract_sales_id")
    private Long contractSalesId;
    @WhereType(filed = "amount")
    private BigDecimal amount;
    @WhereType(filed = "invoice_time")
    private Date invoiceTime;
    @WhereType(filed = "tax_rate")
    private BigDecimal taxRate;
    @WhereType(filed = "invoice_number")
    private String invoiceNumber;
    @WhereType(filed = "invoice_type")
    private Integer invoiceType;
    @WhereType(filed = "invoice_user_id")
    private Long invoiceUserId;
    @WhereType(filed = "invoice_user_name")
    private String invoiceUserName;

    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
}
